package com.javaee.wordtree.service;


import com.javaee.wordtree.anntoation.DCCValue;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
/**
 * @Date 2025/5/17 15:49
 * @Author liuyang2004
 * @Description
 */
@Service
public class DCCService {

    /**
     * 降级开关 0关闭、1开启
     */
    @DCCValue("ifLearn:0")
    private String ifLearn;
    @DCCValue("ifReview:0")
    private String ifReview;
    @DCCValue("ifToday:0")
    private String ifToday;

    public boolean ifLearn() {
        return "1".equals(ifLearn);
    }
    public boolean ifReview() {
        return "1".equals(ifReview);
    }
    public boolean ifToday() {
        return "1".equals(ifToday);
    }




}


